package cn.tedu.egspring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestComment {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext
                ("cn.tedu.egspring");
        Comment comment = context.getBean(Comment.class);
        System.out.println(comment);
    }
}
